package com.mhc.suzuki.manager;

import com.mhc.suzuki.vo.GuaranteeListVO;
import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.GuaranteeDO;
import com.mhc.suzuki.dal.query.GuaranteeQuery;

import java.util.List;
import java.util.Map;


/**
 * Manager for Guarantee.
 */
public interface GuaranteeManager {
    /**
     * query count by query condition.
     */
    int countByQuery(GuaranteeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(GuaranteeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(GuaranteeDO record);

    /**
     * insert selective.
     */
    long insertSelective(GuaranteeDO record);

    /**
     * select by query condition.
     */
    List<GuaranteeDO> selectByQuery(GuaranteeQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<GuaranteeDO> selectByQueryWithPage(GuaranteeQuery query);

    /**
     * select by primary key.
     */
    GuaranteeDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( GuaranteeDO record,  GuaranteeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(GuaranteeDO record, GuaranteeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(GuaranteeDO record);

    List<GuaranteeListVO> selectListByQuery(Map<String, ?> paramMap);

    int countListByQuery(Map<String, ?> paramMap);
}